From c6b36a5f202f5a890b2910f6ca9ccae897078465 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 4 May 2012 14:32:10 +0200 Subject: [PATCH] Include the namespace of the page in the "target" parameter of the form to confirm display of a deleted file. Currently the name of the file is sent without the "File:" prefix making MediaWiki think we want to display a page in the main namespace. Change-Id: I5a42764c8e9289d13b95a1989be63fdf357bc6ef --- includes/specials/SpecialRevisiondelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index b754760d84..d089c73577 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -295,7 +295,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { Xml::openElement( 'form', array( 'method' => 'POST', 'action' => $this->getTitle()->getLocalUrl( - 'target=' . urlencode( $oimage->getName() ) . + 'target=' . urlencode( $this->targetObj->getPrefixedDBkey() ) . '&file=' . urlencode( $archiveName ) . '&token=' . urlencode( $user->getEditToken( $archiveName ) ) ) ) -- 2.20.1